<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../bootstrap-3.4.1-dist/js/jquery-3.4.1.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="myDiv1">
        11111
    </div>
    <button id="btn1" onclick="yincang()">隐藏</button>
    <script>
        function yincang(){
            $('#myDiv1').css({
                display:'none'
            })
        }
    </script>

    <!--
    <script>
        var a = [];
        var num = parseInt((33-1)*Math.random());
        a.push(num);/*先装一个红球进入数组*/
        console.log(a[0])
        console.log(a[1])
        for(var n=0 ; n<a.lenght; n++){/**/
            if(a[n]!=num)
             for(var i=0;i<6;i++){
                num = parseInt((33-1)*Math.random())
                a.push(num);
                break;
             }
        }
        /*生成篮球*/
        var numb = parseInt((16-1)*Math.random())
        a.push(numb)
        /*输出所以球*/
        for(var t=0;t<7;t++){
            console.log(a[t])
        }
    </script>
    -->
</body>
</html>